CREATE TABLE [dbo].[tb_ConceptosDeDesempeno]
(
[idConceptoDesempeno] [int] NOT NULL IDENTITY(1, 1),
[Agente] [int] NOT NULL,
[Concepto] [int] NOT NULL,
[Anio] [datetime] NOT NULL,
[Organizacion] [int] NULL,
[Responsable] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_ConceptosDeDesempeno] ADD CONSTRAINT [PK_tb_ConceptosDeDesempeño] PRIMARY KEY CLUSTERED  ([idConceptoDesempeno]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_ConceptosDeDesempeno] WITH NOCHECK ADD CONSTRAINT [FK_tb_ConceptosDeDesempeño_tb_Agentes] FOREIGN KEY ([Agente]) REFERENCES [dbo].[tb_Agentes] ([idAgente])
GO
ALTER TABLE [dbo].[tb_ConceptosDeDesempeno] ADD CONSTRAINT [FK_tb_ConceptosDeDesempeno_tb_TiposDeConceptosDeDesempeno] FOREIGN KEY ([Concepto]) REFERENCES [dbo].[tb_TiposDeConceptosDeDesempeno] ([IdTipoDeConcepto])
GO
ALTER TABLE [dbo].[tb_ConceptosDeDesempeno] WITH NOCHECK ADD CONSTRAINT [FK_tb_ConceptosDeDesempeño_tb_Organizaciones] FOREIGN KEY ([Organizacion]) REFERENCES [dbo].[tb_Organizaciones] ([idOrganizaciones])
GO
